<?php

declare(strict_types=1);

namespace App\Model;

use Hyperf\DbConnection\Model\Model;

class DataOrderPlaylet extends Model
{
    protected ?string $table = 'data_order_playlet';


    protected array $fillable = ['playlet_id','data_user_id','data_order_id'];
    public function playlet()
    {
        return $this->hasOne(Playlet::class, 'id', 'playlet_id')->where(['status' => Playlet::STATUS_SHOW])->select('id','name');
    }
}
